/*
 * TltPlotWindow.hpp
 *
 * Copyright 2012 Pieter Agten
 *
 * This file is part of tltgen.
 *
 * tltgen is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * tltgen is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with tltgen.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * @file   TltPlotWindow.hpp
 * @author Pieter Agten (pieter.agten@gmail.com)
 * @date   7 feb 2013
 */

#ifndef TLTPLOTWINDOW_HPP
#define TLTPLOTWINDOW_HPP

#include <wx/wx.h>

#include "TltPlotMouseEvent.hpp"

#define TltMouseEventHandler(func) (&func)
#define TLT_MOUSE_EVT_MOTION(id, func)					\
    wx__DECLARE_EVT1(TLT_MOUSE_MOTION, id, TltMouseEventHandler(func))

namespace tltgen {

  class TltPlotWindow : public wxPLplotwindow {
  public:
    TltPlotWindow(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition,
		  const wxSize& size = wxDefaultSize, long style = 0, int pl_style = wxPLPLOT_NONE);
    virtual ~TltPlotWindow();


  protected:
    DECLARE_EVENT_TABLE()

    virtual void OnMouseMotion(wxMouseEvent& event);

  };

}

#endif


